package com.gdpu.project.vo;

import java.util.Date;

/**
 * CgProject entity. @author MyEclipse Persistence Tools
 */

public class CgProject implements java.io.Serializable {

	// Fields
	/**
	 * 每分酬金（元为单位）
	 */
	@SuppressWarnings("unused")
	private final float REWORD_PER_POINT=4.6f;
	private Integer id;
	private String projectId;
	private String fuZeRen;
	private String cooEnterprise;
	private Date projApproTime;
	private String projectOrigin;
	private String projectName;
	/**
	 * 项目经费,以万元为单位
	 */
	private float funds=0f;
	private float keYanFen;
	/**
	 * 科研分酬金
	 */
	private float keYanFenReword;
	/**
	 * 奖励酬金
	 */
	private float reword;
	private String comment;
	private String teacherId;
	private String projectType;
	private String projectXz;
	private String researchType;
	private Date jieTiDate;

	// Constructors

	/** default constructor */
	public CgProject() {
	}

	/**
	 * @param projectId
	 * @param fuZeRen
	 * @param cooEnterprise
	 * @param projApproTime
	 * @param projectOrigin
	 * @param projectName
	 * @param funds
	 * @param keYanFen
	 * @param keYanFenReword
	 * @param reword
	 * @param comment
	 * @param teacherId
	 * @param projectType
	 * @param projectXz
	 * @param researchType
	 * @param jieTiDate
	 */
	public CgProject(String projectId, String fuZeRen, String cooEnterprise,
			Date projApproTime, String projectOrigin, String projectName,
			float funds, float keYanFen, float keYanFenReword, float reword,
			String comment, String teacherId, String projectType,
			String projectXz, String researchType, Date jieTiDate) {

		this.projectId = projectId;
		this.fuZeRen = fuZeRen;
		this.cooEnterprise = cooEnterprise;
		this.projApproTime = projApproTime;
		this.projectOrigin = projectOrigin;
		this.projectName = projectName;
		this.funds = funds;
		this.keYanFen = keYanFen;
		this.keYanFenReword = keYanFenReword;
		this.reword = reword;
		this.comment = comment;
		this.teacherId = teacherId;
		this.projectType = projectType;
		this.projectXz = projectXz;
		this.researchType = researchType;
		this.jieTiDate = jieTiDate;
	}


	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getTeacherId() {
		return this.teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getProjectType() {
		return this.projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	public String getProjectOrigin() {
		return this.projectOrigin;
	}

	public void setProjectOrigin(String projectOrigin) {
		this.projectOrigin = projectOrigin;
	}

	public String getProjectXz() {
		return this.projectXz;
	}

	public void setProjectXz(String projectXz) {
		this.projectXz = projectXz;
	}

	public String getResearchType() {
		return this.researchType;
	}

	public void setResearchType(String researchType) {
		this.researchType = researchType;
	}

	public String getFuZeRen() {
		return this.fuZeRen;
	}

	public void setFuZeRen(String fuZeRen) {
		this.fuZeRen = fuZeRen;
	}

	public Date getJieTiDate() {
		return this.jieTiDate;
	}

	public void setJieTiDate(Date jieTiDate) {
		this.jieTiDate = jieTiDate;
	}

	public float getKeYanFen() {
		return this.keYanFen;
	}

	public void setKeYanFen(float keYanFen) {
		this.keYanFen = keYanFen;
		this.setKeYanFenReword(keYanFen*REWORD_PER_POINT);
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setCooEnterprise(String cooEnterprise) {
		this.cooEnterprise = cooEnterprise;
	}

	public String getCooEnterprise() {
		return cooEnterprise;
	}

	public void setFunds(float funds) {
		if(funds!=0){
			this.funds = funds;
		}else{
			this.funds=0f;
		}		
	}

	public float getFunds() {
		return funds;
	}

	public void setProjApproTime(Date projApproTime) {
		this.projApproTime = projApproTime;
	}

	public Date getProjApproTime() {
		return projApproTime;
	}

	public void setKeYanFenReword(float keYanFenReword) {
		this.keYanFenReword = keYanFenReword;
	}

	public float getKeYanFenReword() {
		return keYanFenReword;
	}

	public void setReword(float reword) {
		this.reword = reword;
	}

	public float getReword() {
		return reword;
	}

}